package com.csi.jf.crucible.ptservice.model;

import com.chinasofti.ro.bizframework.core.data.validation.IValidator;
import com.chinasofti.ro.bizframework.core.orm.entity.Model;


/**
 * 
 * @author BizFoundation
 * @version 1.0
 * @since 1.0
 */
public class SonarDaily extends Model implements IValidator {
	// Fields    
	private Long id; 
	private String creator; 
	private String operation; 
	private String type; 
	private String creatdate; 
	private Long serviceusedid; 
		
	//default constructor
    public SonarDaily() {
    	super();
    }
    
    // Property accessors
	public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
    	this.id = id;
    }
    
	public String getCreator() {
        return this.creator;
    }
    
    public void setCreator(String creator) {
    	this.firePropertyChange("creator", this.creator, creator);
    	this.creator = creator;
    }
    
	public String getOperation() {
        return this.operation;
    }
    
    public void setOperation(String operation) {
    	this.firePropertyChange("operation", this.operation, operation);
    	this.operation = operation;
    }
    
	public String getType() {
        return this.type;
    }
    
    public void setType(String type) {
    	this.firePropertyChange("type", this.type, type);
    	this.type = type;
    }
    
	public String getCreatdate() {
        return this.creatdate;
    }
    
    public void setCreatdate(String creatdate) {
    	this.firePropertyChange("creatdate", this.creatdate, creatdate);
    	this.creatdate = creatdate;
    }
    
	public Long getServiceusedid() {
        return this.serviceusedid;
    }
    
    public void setServiceusedid(Long serviceusedid) {
    	this.firePropertyChange("serviceusedid", this.serviceusedid, serviceusedid);
    	this.serviceusedid = serviceusedid;
    }
    
   	public boolean validate(Object arg0) {
		//SonarDaily sonarDaily = (SonarDaily)arg0;
		//Validation.required("sonarDaily.id",sonarDaily.getId());
		return true;
	}
}